package org.example.composite;

/**
 * @author
 * @description
 */
public class Department extends OrganizationComponent{
    public Department(String name, String des) {
        super(name, des);
    }

    /**
     * @return
     */
    @Override
    public String getName() {
        return super.getName();
    }

    /**
     * @return
     */
    @Override
    public String getDes() {
        return super.getDes();
    }

    /**
     * 每个子类都需要实现
     */
    @Override
    public void print() {
        System.out.println(getName());
    }
}
